<%-- 
    Document   : validate
    Created on : Oct 29, 2009, 2:31:04 AM
    Author     : Phong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="DAOClass.Members"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    </head>
    <body>
        <jsp:useBean id="validate" class="DAOClass.Members" >

        </jsp:useBean>

    <%
        if (session.getAttribute("UserName") != null) {
            String validateUserAdmin = session.getAttribute("UserName").toString();
            if (validate.validateAdmin(validateUserAdmin) == false) {
                response.sendRedirect("404.html");
            }
        } else
            response.sendRedirect("../Login.jsp");
    %>
    </body>
</html>
